package com.app.mapper;

import com.app.pojo.PaymentRecordsLog;
import com.app.vo.AccountAndTotalPaymentMoney;
import com.app.vo.AdminHomePageVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 缴费记录表 Mapper 接口
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
@Mapper
public interface PaymentRecordsLogMapper extends BaseMapper<PaymentRecordsLog> {

    List<AccountAndTotalPaymentMoney> selectListByUserId(Integer userId);
    /**
     * Admin首页查询缴费总金额
     * @return
     */
    BigDecimal sumMoney();

    /**
     * Admin首页查询近三十天缴费金额
     * @return
     */
    List<AdminHomePageVo> paymentAmount();


}
